<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="de.medieninf.webanw.RechnerBean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="rechnerBean" type="de.medieninf.webanw.RechnerBean"
	scope="session" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="/WUmrechner" method="get">
		<h3>Grundwährung:</h3>
		<p>
			<%
				RechnerBean rb = (RechnerBean) session.getAttribute("rechnerBean");
				String[] liste = rb.getWaehrungen();
			%><select name="Grundwährung" size="1">
				<%
					for (String a : liste) {
				%><option><%=a%></option>
				<%
					}
				%>
			</select>
		</p>
		<h3>Zielwährung:</h3>
		<p>
			<select name="Zielwährung" size="1">
				<%
					for (String a : liste) {
				%><option><%=a%></option>
				<%
					}
				%>
			</select>
		</p>
		<p>
			Kurs:<br> <input name="kurs" type="text" size="30"
				maxlength="40">
		</p>
		<input type="submit" name="ok" value="ok">
	</form>
</body>
</html>